#include <iostream>
#include <pthread.h>
using namespace std;

class Func
{
public:
    Func(int n):n(n){}
    bool operator() (int num) 
    {
        return num > 3 && num % n;//比三大的偶数
    }

private:
    int n;

};

bool IsGreaterThan(int number)
{
    return number > 3;
}

bool func(int number, int n)
{
    return number > 3 && n % n == 0;
}

int Count(int *num, int size, bool(*p)(int))
{
    int count = 0;
    for(int i= 0; i < size; i++)
    {
        if(p(num[i]) == true)
        {
            count++;
        }
    }
    return count;
}
int main()
{
    int n[] = {1,3,2,6,7};
    cout<<Count(n, 5, IsGreaterThan)<<endl;
}
